import Vue from 'vue'
import Router from 'vue-router'
import MovieList from '@/components/MovieList'
import MovieDetail from '@/components/MovieDetail'
import MovieDp from '@/components/MovieDp'
import MovieCp from '@/components/MovieCp'
import MovieDirector from '@/components/MovieDirector'
import MovieCasts from '@/components/MovieCasts'
import MovieSearch from '@/components/MovieSearch'
import MovieWill from '@/components/MovieWill'
import searchResult from '@/components/searchResult'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'MovieList',
      component: MovieList
    },
    {
      path: '/movie/:id',
      name: 'MovieDetail',
      component: MovieDetail
    },
    {
      path: '/dp/:id',
      name: 'MovieDp',
      component: MovieDp
    },
    {
      path: '/cp/:id',
      name: 'MovieCp',
      component: MovieCp
    },
    {
      path: '/Director/:id',
      name: 'MovieDirector',
      component: MovieDirector
    },
    {
      path: '/Casts/:id',
      name: 'MovieCasts',
      component: MovieCasts
    },
    {
      path: '/MovieSearch',
      name: 'MovieSearch',
      component: MovieSearch
    },
    {
      path: '/MovieWill',
      name: 'MovieWill',
      component: MovieWill
    },
    {
      path: '/searchResult',
      name: 'searchResult',
      component: searchResult
    }
  ]
})
